package com.example.demo.Entity;

import java.sql.Timestamp;

public class ContentTag {
    private long video_id;
    private String tag_name;
    private Timestamp time;
    public ContentTag(){}

    public void setAttribute(String key,String value)
    {
        switch (key) {
            case "video_id":
                setVideo_id(Long.parseLong(value));
                break;
            case "tag_name":
                setTag_name(value);
                break;
            case "time":
                setTime(Timestamp.valueOf(value));
                break;
        }
    }

    public long getVideo_id() {
        return video_id;
    }

    public void setVideo_id(long video_id) {
        this.video_id = video_id;
    }

    public String getTag_name() {
        return tag_name;
    }

    public void setTag_name(String tag_name) {
        this.tag_name = tag_name;
    }

    public Timestamp getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }
}
